<template>
	<view class="box">
		<uni-collapse>
			<view class="text1" @click="gongs()">公司证照</view>
			<uni-collapse-item title="平台基础规则">
				<view class="content" v-for="(item,index) in list1" :key="index" @click="one(item.id)">
					<p class="text">{{item.text}}</p>		
				</view>
			</uni-collapse-item>
			<uni-collapse-item title="平台基础规则">
				<view class="content" v-for="(item,index) in list2" :key="index" @click="one(item.id)">
					<p class="text">{{item.text}}</p>		
				</view>
			</uni-collapse-item>
			<view class="text1" @click="yin()">隐私协议</view>
			<view class="text1" @click="about()">关于能链</view>
		</uni-collapse>

	</view>
	

</template>

<script>
	export default{
		data(){
			return{
				list1:[{text:'用户服务协议',id:'1'},{text:'价格说明',id:'2'},{text:'团油用户评价规则',id:'3'},{text:'服务费细则',id:'4'},{text:'平台开票规则',id:'5'}],
				list2:[{text:'省钱会员服务协议',id:'6'},{text:'省钱会员自动续费服务协议',id:'7'},{text:'超级VIP服务协议',id:'8'},{text:'油滴规则',id:'9'},{text:'加油金活动及规则说明',id:'10'},{text:'团油加油优惠券使用说明',id:'11'},]
			}
		},
		methods:{
			gongs:function(){
				uni.navigateTo({
					url:"../me/gongsi"
				})
			},
			one:function(id){
						if ( id ==1){
							uni.navigateTo({
								url:'../me_two/a_three1'
							})
						} else if (id == 2){
							uni.navigateTo({
								url:'../me_two/a_three1'
							})
						} else if ( id == 3){
							uni.navigateTo({
								url:'../me_two/a_three1'
							})
						} else if(id==4){
							uni.navigateTo({
								url:'../me_two/a_three1'
							})
						}else if(id==5){
							uni.navigateTo({
								url:'../me_two/a_three1'
							})
						}
						else if(id==6){
							uni.navigateTo({
								url:'../me_two/a_three2'
							})
						}else if(id==7){
							uni.navigateTo({
								url:'../me_two/a_three2'
							})
						}else if(id==8){
							uni.navigateTo({
								url:'../me_two/a_three2'
							})
						}else if(id==9){
							uni.navigateTo({
								url:'../me_two/a_three2'
							})
						}else if(id==10){
							uni.navigateTo({
								url:'../me_two/a_three2'
							})
						}else if(id==11){
							uni.navigateTo({
								url:'../me_two/a_three2'
							})
						}
					},
		}
	}
</script>

<style>
	.box{background-color: #fff;}
	.text1{padding:10rpx 25rpx;}
	.text{padding:10rpx 25rpx;}
	.content{width:80%;margin:0 aut;}
</style>